package top.zhangjianyong.tools.service.api.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import top.zhangjianyong.tools.service.api.CanteenService;
import top.zhangjianyong.tools.timer.Canteen2Timer;
import top.zhangjianyong.tools.timer.CanteenTimer;

/**
 * @author ： zhangjianyong
 * @date ： 2022/9/27 9:18 AM
 */
@Service
public class CanteenServiceImpl implements CanteenService {

    @Autowired
    private Canteen2Timer canteenTimer;

    public void startTimer() {
        canteenTimer.orderAsync();

    }
}
